// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
import ViewUI from 'view-design' // 全局引入view-design
import 'view-design/dist/styles/iview.css' // view-design样式引入（必须）

Vue.config.productionTip = false

// The routing configuration
// const RouterConfig = {
//   routes: Routers
// }
// const router = new VueRouter(RouterConfig)

Vue.use(VueResource)
// 全局使用ViewUI组件库。若要按需引入组件使用，则需要对.babelrc文件进行配置，详情请参考https://www.iviewui.com/docs/guide/start
Vue.use(ViewUI)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
